package com.lingyue.entity.module.def.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 问题反馈_关联附件
 * </p>
 *
 * @author lizhiyuan
 * @since 2020-03-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("feedback_attachment")
@ApiModel(value="FeedbackAttachmentEntity对象", description="问题反馈_关联附件")
public class FeedbackAttachmentEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "附件ID", hidden = true)
    @TableId(value = "fba_id")
    private String id;

    @ApiModelProperty(value = "关联ID", hidden = true)
    @TableField("fba_fb_id")
    private String fbId;

    @ApiModelProperty(value = "附件路径")
    @TableField("fba_path")
    @NotNull
    private String relativePath;

    @ApiModelProperty(value = "附件名称")
    @TableField("fba_filename")
    @NotNull
    private String name;

    @ApiModelProperty(value = "上传人",hidden = true)
    @TableField("fba_create_user")
    private String createUser;

    @ApiModelProperty(value = "上传时间",hidden = true)
    @TableField("fba_create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "文件后缀")
    @TableField(exist = false)
    private String suffix;

    @ApiModelProperty(value = "下载路径")
    @TableField(exist = false)
    private String downloadPath;


    public static final String FBA_ID = "fba_id";

    public static final String FBA_FB_ID = "fba_fb_id";

    public static final String FBA_PATH = "fba_path";

    public static final String FBA_FILENAME = "fba_filename";

    public static final String FBA_CREATE_USER = "fba_create_user";

    public static final String FBA_CREATE_TIME = "fba_create_time";

}
